package com.matt.domain.rel;

import com.matt.commons.model.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * *******************************
 * Created by Ron.
 * form com.matt
 * on 2018/3/13
 * *******************************
 */
@Entity
@Table(name = "rel_teacher_course_plan_attended")
@EqualsAndHashCode(callSuper = true)
@Data
public class RelTeacherCoursePlanAttended extends Model{

    @Column(columnDefinition = "varchar(32) COMMENT '老师id'")
    private String teacherId;

    @Column(columnDefinition = "varchar(50) COMMENT '老师名称'")
    private String teacherName;

    @Column(columnDefinition = "varchar(32) COMMENT '班级托班课程id'")
    private String classesPlanId;

    public static RelTeacherCoursePlanAttended of(String teacherId, String classesCoursePlanNurseryId, String teacherName){
        RelTeacherCoursePlanAttended nursery = new RelTeacherCoursePlanAttended();
        nursery.setTeacherId(teacherId);
        nursery.setClassesPlanId(classesCoursePlanNurseryId);
        nursery.setTeacherName(teacherName);
        return nursery;
    }
}
